import { http } from '@/utils/http'
import { WithdrawParams, WithdrawConfig } from './type'

// 获取提现配置
export const fetchWithdrawConfig = () => http.get<WithdrawConfig>('/shopapi/withdraw/getConfig')

// 申请提现
export const fetchWithdraw = (p: WithdrawParams) => http.post('/shopapi/withdraw/apply', p)

// 提现记录
export const fetchWithdrawRecord = (p: Pagination) => http.get('/shopapi/withdraw/lists', p)
